
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>持久层(ORM)的一些框架？ - 学习卡片</title>
      <style>
        body { font-family: sans-serif; background-color: #f0f8ff; color: #333; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; }
        .header h1 { font-size: 32px; }
        .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1200px; }
        .card-container { perspective: 1200px; cursor: pointer; height: 250px; }
        .card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
        .card-container.flipped .card { transform: rotateY(180deg); }
        .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 16px; background-color: #fff; padding: 24px; }
        .card-back { background-color: #f0fff4; transform: rotateY(180deg); justify-content: space-between; }
        .card-category { font-size: 14px; color: #0052d9; margin-bottom: 8px; font-weight: 500; }
        .card-question { font-size: 20px; font-weight: 500; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
        .card-answer-wrapper { flex-grow: 1; overflow-y: auto; }
        .card-answer { font-size: 15px; line-height: 1.7; }
        .card-footer { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
        .card-source { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
      </style>
    </head>
    <body>
      <div class="header">
        <h1>持久层(ORM)的一些框架？ - 学习卡片</h1>
      </div>
      <div class="grid-container">
        
    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">规范</div>
          <div class="card-question">什么是JPA (Java Persistence API)？它与Hibernate这类ORM框架是什么关系？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">规范</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">JPA是一个Java EE规范，定义了一组用于进行对象持久化操作的接口和注解。它可以由多种ORM框架（如Hibernate、EclipseLink等）实现。</div>
          </div>
          <div class="card-source">来源: 文档中「JPA (Java Persistence API)」部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">框架</div>
          <div class="card-question">MyBatis框架的核心特点是什么？它如何管理SQL语句？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">框架</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">MyBatis是一个轻量级的ORM框架，其核心特点是将SQL语句和Java方法进行了解耦。它通过XML或注解来配置SQL语句，从而提供了灵活的数据库操作方式。</div>
          </div>
          <div class="card-source">来源: 文档中「MyBatis」部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">框架</div>
          <div class="card-question">Spring Data JPA的主要作用是什么？它如何简化数据库操作？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">框架</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">Spring Data JPA是一个基于Spring的数据访问层框架，它简化了对JPA的使用，并提供了一系列的便捷方法来进行常见的数据库操作。</div>
          </div>
          <div class="card-source">来源: 文档中「Spring Data JPA」部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">框架</div>
          <div class="card-question">Hibernate作为一个ORM框架，其主要能力体现在哪些方面？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">框架</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">Hibernate是一个流行的开源ORM框架，它提供了高度的对象关系映射能力，并且支持面向对象的数据库操作。</div>
          </div>
          <div class="card-source">来源: 文档中「Hibernate」部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">规范</div>
          <div class="card-question">JDBC的本质是什么？它是由哪个组织提供的？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">规范</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">JDBC是sun公司提供的一套用于Java访问数据库的规范。</div>
          </div>
          <div class="card-source">来源: 文档中「JDBC」部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">JdbcTemplate是什么？与功能更丰富的框架（如MyBatis）相比，它处于什么定位？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">JdbcTemplate是Spring提供的一个操作数据库的模板类，通常被当作一个工具类来使用。它的功能没有MyBatis那么丰富。</div>
          </div>
          <div class="card-source">来源: 文档中「JdbcTemplate」部分</div>
        </div>
      </div>
    </div>

      </div>
    </body>
    </html>
